package com.kdayun.demo.controller;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.kdayun.demo.service.DemoService;
import com.kdayun.z1.core.base.BaseController;
import com.kdayun.z1.core.base.RetVo;
import com.kdayun.z1.core.base.RetVo.retstate;

/**
 * 演示Contoller
 * 
 * @author gk
 *
 */
@Controller
@RequestMapping("demo")
public class DemoController extends BaseController {

	@Autowired
	DemoService demoService;

	/**
	 * 上传资源文件 返回文件资源的路径 一般用于识别的文件图片识别
	 */
	@RequestMapping(value = "hello", method = RequestMethod.GET)
	public RetVo upload(HttpServletRequest request, HttpServletResponse response) throws Exception {
		return RetVo.getNewInstance(retstate.OK, "hello", null);
	}
}
